package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.CardInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 银行卡信息Mapper接口
 */
@Mapper
public interface CardInfoMapper extends BaseMapper<CardInfo> {
    /**
     * 调用转账存储过程
     * 
     * @param fromCardId 转出卡号
     * @param toCardId 转入卡号
     * @param amount 转账金额
     * @param password 密码
     * @param paramMap 包含输出参数的Map
     * @return 影响行数
     */
    Integer transfer(@Param("fromCardId") String fromCardId, 
                    @Param("toCardId") String toCardId, 
                    @Param("amount") String amount, 
                    @Param("password") String password,
                    @Param("paramMap") Map<String, Object> paramMap);
} 